<?php
// +----------------------------------------------------------------------
// | 文件目录：D:\information\phone-bill-interface-main\app\Models
// +----------------------------------------------------------------------
// | 文件名：PayRecordModel.php
// +----------------------------------------------------------------------
// | 文件路径：D:\information\phone-bill-interface-main\app\Models\PayRecordModel.php
// +----------------------------------------------------------------------
// | 文件功能： 支付记录表
// +----------------------------------------------------------------------
// | 作者：李星星
// +----------------------------------------------------------------------
// | 创建时间：2025-05-13 14:25:32
// +----------------------------------------------------------------------
namespace App\Models;

use App\Enum\PayRecordCode;

class PayRecordModel extends BaseModel
{
    // 表名
    protected $table = 'hf_pay_record';

    // 主键
    protected $primaryKey = 'record_id';

    // fillable
    protected $fillable = [
        'status',
        'phone',
        'money',
        'pay_money',
        'out_trade_no',
        'trade_no',
        'trade_status',
        'type',
        'name'
    ];

    // attributes 
    protected $attributes = [
        'status' => PayRecordCode::DEFAULT_CODE
    ];

    protected $casts = [
        'created_at' => 'datetime:Y-m-d',
        'updated_at' => 'datetime:Y-m-d'
    ];
}
